/**
 * 店铺管理，管理页面跳转
 */
$(function(){
	var shopId = getQueryString("shopId");//获取请求地址中的shopId
	var shopInfoUrl = "/o2oSystem/shopadmin/getshopmanagementinfo?shopId="+shopId;
	$.getJSON(shopInfoUrl,function(data){
		if(data.redirect){	//如果重定向为true
			window.location.href=data.url;//跳转到指定地址
		}else{
			if(data.shopId != undefined && data.shopId != null){
				shopId = data.shopId;
			}
			$("#shopInfo").attr("href","/o2oSystem/shopadmin/shopoperation?shopId="+shopId);
		}
	});
})